#!/bin/sh

#
# Run the Reims Copie terminal.
#
# Before, compile with 'ant ship'
#

JAR_FILE=dist/reimscopie-console.jar

# We check if the Jar is present
if [ ! -f $JAR_FILE ]; then
	echo "Console binaries not found"
	echo "Please run 'ant ship' first"
	exit 1
fi


# Java command
if [ $JAVA_HOME ]; then
  java=$JAVA_HOME/bin/java
else
  java=java
fi

# Run
$java -jar $JAR_FILE $@
